package com.ysd.shiro.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.ysd.shiro.entity.User;

@Mapper
public interface UserMapper {

	int delete(int userId);

    int insertUser(User user);


    User findById(int userId);


    User findByUsername(String username);



    int updateByParams(User record);
    /**
	 * 查询出所有的用户信息
	 * @return
	 */
	public List<User> selectAllUser(@Param("setValue")int setValue,@Param("limit")int limit,@Param("name")String name,@Param("gender")String gender,@Param("isAdmin") String isAdmin);
	/**
	 * 查询出user表里的总条数
	 * @return
	 */
	public int selectUserCounts(@Param("name")String name,@Param("gender")String gender,@Param("isAdmin")String isAdmin);
	
    
}